import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css'
import './styles/common.less'
import componentsPlugin from '@/components'
import myDirective from '@/derectives/index'
// 测试
// import { user } from '@/api/user'
// const res = user({
//   url: '/login',
//   method: 'POST',
//   data: { name: 'cp', password: 123 }
// })
// console.log(res)
store.commit('user/setUser')
createApp(App).use(store).use(router).use(componentsPlugin).use(myDirective).mount('#app')
